package com.zq.meju;

/**
 * 枚举
 */
public class EnumTest {
    public static void main(String[] args) {
        switch (Sex.BOY){
            case BOY:
                System.out.println("男孩");
                break;
            case GIRl:
                System.out.println("女孩");
                break;
        }
    }
}

/**
 * 枚举类
 */
enum Sex{
    BOY,GIRl;
}